package com.ek.distmpl.dao.mapper;

import com.ek.distmpl.dao.model.Duser;
import com.ek.distmpl.dao.model.DuserExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface DuserMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @SelectProvider(type=DuserSqlProvider.class, method="countByExample")
    long countByExample(DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @DeleteProvider(type=DuserSqlProvider.class, method="deleteByExample")
    int deleteByExample(DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @Delete({
        "delete from duser",
        "where duser_uid = #{duserUid,jdbcType=CHAR}"
    })
    int deleteByPrimaryKey(String duserUid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @Insert({
        "insert into duser (duser_uid, duser_vid, ",
        "duser_hid, gender, vpoint, ",
        "validity, duser_star, ",
        "descself)",
        "values (#{duserUid,jdbcType=CHAR}, #{duserVid,jdbcType=CHAR}, ",
        "#{duserHid,jdbcType=CHAR}, #{gender,jdbcType=INTEGER}, #{vpoint,jdbcType=INTEGER}, ",
        "#{validity,jdbcType=INTEGER}, #{duserStar,jdbcType=DOUBLE}, ",
        "#{descself,jdbcType=LONGVARCHAR})"
    })
    int insert(Duser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @InsertProvider(type=DuserSqlProvider.class, method="insertSelective")
    int insertSelective(Duser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @SelectProvider(type=DuserSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="duser_uid", property="duserUid", jdbcType=JdbcType.CHAR, id=true),
        @Result(column="duser_vid", property="duserVid", jdbcType=JdbcType.CHAR),
        @Result(column="duser_hid", property="duserHid", jdbcType=JdbcType.CHAR),
        @Result(column="gender", property="gender", jdbcType=JdbcType.INTEGER),
        @Result(column="vpoint", property="vpoint", jdbcType=JdbcType.INTEGER),
        @Result(column="validity", property="validity", jdbcType=JdbcType.INTEGER),
        @Result(column="duser_star", property="duserStar", jdbcType=JdbcType.DOUBLE),
        @Result(column="descself", property="descself", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<Duser> selectByExampleWithBLOBs(DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @SelectProvider(type=DuserSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="duser_uid", property="duserUid", jdbcType=JdbcType.CHAR, id=true),
        @Result(column="duser_vid", property="duserVid", jdbcType=JdbcType.CHAR),
        @Result(column="duser_hid", property="duserHid", jdbcType=JdbcType.CHAR),
        @Result(column="gender", property="gender", jdbcType=JdbcType.INTEGER),
        @Result(column="vpoint", property="vpoint", jdbcType=JdbcType.INTEGER),
        @Result(column="validity", property="validity", jdbcType=JdbcType.INTEGER),
        @Result(column="duser_star", property="duserStar", jdbcType=JdbcType.DOUBLE)
    })
    List<Duser> selectByExample(DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @Select({
        "select",
        "duser_uid, duser_vid, duser_hid, gender, vpoint, validity, duser_star, descself",
        "from duser",
        "where duser_uid = #{duserUid,jdbcType=CHAR}"
    })
    @Results({
        @Result(column="duser_uid", property="duserUid", jdbcType=JdbcType.CHAR, id=true),
        @Result(column="duser_vid", property="duserVid", jdbcType=JdbcType.CHAR),
        @Result(column="duser_hid", property="duserHid", jdbcType=JdbcType.CHAR),
        @Result(column="gender", property="gender", jdbcType=JdbcType.INTEGER),
        @Result(column="vpoint", property="vpoint", jdbcType=JdbcType.INTEGER),
        @Result(column="validity", property="validity", jdbcType=JdbcType.INTEGER),
        @Result(column="duser_star", property="duserStar", jdbcType=JdbcType.DOUBLE),
        @Result(column="descself", property="descself", jdbcType=JdbcType.LONGVARCHAR)
    })
    Duser selectByPrimaryKey(String duserUid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @UpdateProvider(type=DuserSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") Duser record, @Param("example") DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @UpdateProvider(type=DuserSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") Duser record, @Param("example") DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @UpdateProvider(type=DuserSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") Duser record, @Param("example") DuserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @UpdateProvider(type=DuserSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(Duser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @Update({
        "update duser",
        "set duser_vid = #{duserVid,jdbcType=CHAR},",
          "duser_hid = #{duserHid,jdbcType=CHAR},",
          "gender = #{gender,jdbcType=INTEGER},",
          "vpoint = #{vpoint,jdbcType=INTEGER},",
          "validity = #{validity,jdbcType=INTEGER},",
          "duser_star = #{duserStar,jdbcType=DOUBLE},",
          "descself = #{descself,jdbcType=LONGVARCHAR}",
        "where duser_uid = #{duserUid,jdbcType=CHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(Duser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table duser
     *
     * @mbg.generated Fri Mar 29 15:10:48 CST 2019
     */
    @Update({
        "update duser",
        "set duser_vid = #{duserVid,jdbcType=CHAR},",
          "duser_hid = #{duserHid,jdbcType=CHAR},",
          "gender = #{gender,jdbcType=INTEGER},",
          "vpoint = #{vpoint,jdbcType=INTEGER},",
          "validity = #{validity,jdbcType=INTEGER},",
          "duser_star = #{duserStar,jdbcType=DOUBLE}",
        "where duser_uid = #{duserUid,jdbcType=CHAR}"
    })
    int updateByPrimaryKey(Duser record);
}